home *** CD-ROM | disk | FTP | other *** search
- CMENU
-
- CMENU allows various programs to be connected by and called from menus.
- The menus are ascii text files which are read by CMENU and control the
- display and the program chaining. CMENU reads the menu and outputs its
- characters to the console until it reaches the first '~' ("tilde").
- The tilde character is not displayed, but the character string beginning
- immediately after it and terminating with a CR is the name of the
- program which will be executed if the user enters a '0' or a CR only.
- If no characters are present between the tilde and the CR, CMENU will
- terminate in response to a 0 entry. The remaining CR terminated strings
- determine the programs which will be loaded in response to a non-zero entry.
- The first string is the name of the program which will be executed if '1'
- is entered; entering '2' will cause the second program to be loaded. If
- any program name string is empty (a line with only a CR) then entering
- the selection associated with it will also cause CMENU to terminate. CMENU
- counts the number of program options and will reject an entry which is non-
- numeric or out of range. When the called program has terminated CMENU
- will redisplay its menu. The CMENU.COM contained in CMENU.LBR permits
- up to 51 program selections (0 - 50) with each program string having a
- maximum of 80 characters. The capacity of the program can be changed
- by modifying C_SIZE, B_SIZE & MAXPROGS and recompiling.
-
- CMENU may reload itself and execute another menu and when it terminates,
- the previous menu will be displayed. This allows you to create a multi-layer
- directory scheme. To run CMENU, enter 'cmenu [menu]'. If [menu] is not
- specified CMENU will immediately terminate.
-
- CMENU can pass command line arguments to all programs written in Lattice C.
- You may or may not be able to pass arguments to other programs. If you try
- it may work, but you might have to do things a little differently than you
- would from DOS. For instance the Prokey command line 'prokey ws.pro/r'
- works from DOS but not from CMENU; however 'prokey /r ws.pro' works from
- both.
-
- If a program is not present in the current directory, CMENU will search
- for it through the PATH directories. There are two peculiarities. First
- if the root directory is to be searched it must be designated as '[DRIVE]:'
- rather than '[DRIVE]:\'. All other directory specifications work as usual.
- Therefore if you want to access the root directory with both CMENU and DOS
- commands the PATH environment should include both values ( 'PATH C:\;C:' ).
- Second, only the first menu level has access to the PATH environment that
- is set from DOS. However, CMENU will accept a path specification as
- part of the program name and will find the program if it is in that
- directory.
-
- CMENU.LBR contains the following files:
-
- CMENU.COM Program file.
- CMENU.C CMENU source code.
- CMENU.DOC This documentation file.
- MENU00.MNU Sample menu file, using ansi escape sequence.
- MENU01.MNU Sample menu file, without ansi escape sequence.
- EPSON.EXE Lattice C program to set up Epson Printers. The
- program is self documenting if you enter 'epson'.
- DEMO.BAT Demonstration batch file.
-
-
-
- Welcom H. Watson, Jr.
- January 21, 1985